package com.xr.miniprogram.service;

import com.xr.miniprogram.domain.MiniProgramRefund;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author da
 * @since 2023-10-25
 */
public interface IMiniProgramRefundService extends IService<MiniProgramRefund> {

    /**
     * 更新退款信息
     * @param result
     */
    void updateRefund(String result);

    /**
     * 根据订单编号创建退款
     * @param orderNo
     * @param reason
     * @return
     */
    MiniProgramRefund createRefundByOrderNo(String orderNo, String reason);

    /**
     * 根据订单编号查询退款
     * @param orderNumber
     * @return
     */
    MiniProgramRefund getRefundByOrderNumber(String orderNumber);
}
